<?php
include( "inc/header.php" );
login_check( );
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
echo "<head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\n";
echo "<link rel=\"stylesheet\" href=\"style/common.css\" type=\"text/css\" />\n";
echo "<title>显示/隐藏左侧导航栏</title>\n";
echo "</head>\n";
echo "<script language=\"JavaScript\">\n";
echo "function Submit_onclick(){\n";
echo "	if(parent.myFrame.cols == \"199,7,*\") {\n";
echo "		parent.myFrame.cols=\"0,7,*\";\n";
echo "		document.getElementById(\"ImgArrow\").src=\"images/switch_right.gif\";\n";
echo "		document.getElementById(\"ImgArrow\").alt=\"打开左侧导航栏\";\n";
echo "	} else {\n";
echo "		parent.myFrame.cols=\"199,7,*\";\n";
echo "		document.getElementById(\"ImgArrow\").src=\"images/switch_left.gif\";\n";
echo "		document.getElementById(\"ImgArrow\").alt=\"隐藏左侧导航栏\";\n";
echo "	}\n";
echo "}\n";
echo "\n";
echo "function MyLoad() {\n";
echo "	if(window.parent.location.href.indexOf(\"MainUrl\")>0) {\n";
echo "		window.top.midFrame.document.getElementById(\"ImgArrow\").src=\"images/switch_right.gif\";\n";
echo "	}\n";
echo "}\n";
echo "</script>\n";
echo "<body onload=\"MyLoad()\">\n";
echo "<div id=\"switchpic\"><a href=\"javascript:Submit_onclick()\"><img src=\"images/switch_left.gif\" alt=\"隐藏左侧导航栏\" id=\"ImgArrow\" /></a></div>\n";
echo "</body>\n";
echo "</html>\n";
echo "\n";
?>